#!/usr/bin/env python

'readTextFile.py -- read and display text file'

fname = input('Enter filename: ')

try:
    fobj = open(fname, 'r')
except IOError as e:
    print('*** file opne error', e)
else:
    for eachline in fobj:
        print(eachline.strip())
    fobj.close()
